//
//  hunlijiWebViewController.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/10.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "hunlijiWebViewController.h"

@interface hunlijiWebViewController ()

@property(nonatomic,retain)UIWebView *web;
@end

@implementation hunlijiWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor =[UIColor yellowColor];
    
    self.web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-64-49)];
    self.web.scalesPageToFit =YES; //自动进行屏幕的缩放适应
    [self.view addSubview:self.web];
    NSURL *url =[NSURL URLWithString:@"http://hunliji.com"];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    [self.web loadRequest:request];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
